package com.itheima.project.job;

/**
 * @Description：NativePay付款结果同步
 */
//@Component
public class NativePayHandlerJob {
/*
    @Autowired
    NativePayFeign nativePayFeign;

    @Autowired
    TradingFeign tradingFeign;

    *//***
     * @description NativePay付款结果同步
     * @param param
     * @return
     *//*
    //@XxlJob(value = "nativePayHandlerJob")
    public ReturnT<String> execute(String param) {
        //查询所有支付中的订单
        ResponseWrap<List<TradingVo>> responseWrap = tradingFeign.findTradingByTradingState(TradingConstant.FKZ);
        if (!EmptyUtil.isNullOrEmpty(responseWrap.getDatas())){
            for (TradingVo tradingVo : responseWrap.getDatas()) {
                this.synchTradingState(tradingVo);
            }
        }
        ReturnT.SUCCESS.setMsg("执行-支付同步-成功");
        return ReturnT.SUCCESS;

    }

    public void synchTradingState(TradingVo tradingVo){
        //交易单状态查询
        ResponseWrap<TradingVo> responseWrap = nativePayFeign.queryDownLineTrading(tradingVo);

    }*/

}
